home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
examples
/
mathtest.r
< prev
next >
Wrap
Text File
|
1994-09-21
|
653b
|
69 lines
//
// For testing how various math libraries will respond
//
diary();
Inf = inf();
NaN = nan();
//
// Trig Functions
//
cos( Inf )
sin( Inf )
tan( Inf )
acos( Inf )
asin( Inf )
atan( Inf )
cos( -Inf )
sin( -Inf )
tan( -Inf )
acos( -Inf )
asin( -Inf )
atan( -Inf )
cos( NaN )
sin( NaN )
tan( NaN )
acos( NaN )
asin( NaN )
atan( NaN )
//
// Hyperbolic trig functions
//
sinh( Inf )
cosh( Inf )
tanh( Inf )
sinh( -Inf )
cosh( -Inf )
tanh( -Inf )
sinh( NaN )
cosh( NaN )
tanh( NaN )
//
// Misc.
//
exp( Inf )
log( Inf )
log10( Inf )
sqrt( Inf )
exp( -Inf )
log( -Inf )
log10( -Inf )
sqrt( -Inf )
exp( NaN )
log( NaN )
log10( NaN )
sqrt( NaN )